﻿<%@ Page Title="采购药品明细" Language="C#" MasterPageFile="~/Master/MasterPage.master"
	AutoEventWireup="True" CodeBehind="TransactionDetail.aspx.cs" Inherits="TotalDrugs_Transaction_Detail" %>

<%@ Register Src="~/Common/QueryControl.ascx" TagName="QueryControl" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

	<script type="text/javascript" src="../Scripts/My97DatePicker/WdatePicker.js"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
	<div id="tabcontent2">
		<uc1:QueryControl ID="QueryControl1" runat="server" />
	</div>
	<asp:GridView ID="gvwInfo" runat="server" AutoGenerateColumns="false" CssClass="mainlist">
		<Columns>
			<asp:TemplateField HeaderText="序号">
				<ItemTemplate>
					<%# Container.DataItemIndex+1+AspNetPager1.PageSize*(AspNetPager1.CurrentPageIndex-1) %>
				</ItemTemplate>
				<HeaderStyle Width="30px" />
			</asp:TemplateField>
			<asp:BoundField HeaderText="采购数量" DataField="PurchaseCount" />
			<asp:BoundField HeaderText="配送数量" DataField="DistributeCount" />
			<asp:BoundField HeaderText="入库数量" DataField="WarehouseCount" />
			<asp:BoundField HeaderText="采购总金额" DataField="PurchaseAmount" DataFormatString="{0:F2}" />
			<asp:BoundField HeaderText="入库总金额" DataField="WarehouseAmount" DataFormatString="{0:F2}" />
			<asp:BoundField HeaderText="采购单名称" DataField="OrderName" />
			<asp:BoundField HeaderText="开始时间" DataField="StartTime" DataFormatString="{0:yyyy-MM-dd}" />
			<asp:BoundField HeaderText="截止时间" DataField="PlanEndTime" DataFormatString="{0:yyyy-MM-dd}" />
			<asp:BoundField HeaderText="通用名" DataField="ProductName" />
			<asp:BoundField HeaderText="剂型" DataField="MedicineModelName" />
			<asp:BoundField HeaderText="规格" DataField="Outlookc" />
			<asp:BoundField HeaderText="单位" DataField="Unit" />
			<%--                <asp:BoundField HeaderText="包装" DataField="Pack" />--%>
			<asp:BoundField HeaderText="包装" DataField="Factor" />
			<asp:BoundField HeaderText="质量层次" DataField="QualityLevel" />
			<asp:BoundField HeaderText="实际采购价" DataField="Price" />
			<asp:BoundField HeaderText="生产企业" DataField="CompanyName_SC" />
			<asp:BoundField HeaderText="配送企业" DataField="CompanyName_PS" />
			<asp:BoundField HeaderText="采购医院" DataField="HospitalName" />
		</Columns>
	</asp:GridView>
	<%--    <asp:Button ID="btnExcel" runat="server" CssClass="btn" Text="导出数据" 
        onclick="btnExcel_Click" />--%>
	<hz:HzButton ID="btnExcel" runat="server" CssClass="btn" Text="导出数据" OnClick="btnExcel_Click" />&nbsp;统计：<asp:Label
		ID="lblCount" runat="server"></asp:Label>
	<div class="page">
		<webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged">
		</webdiyer:AspNetPager>
	</div>
</asp:Content>
